@isTest
private class AccountCustomPortalTest {
	 
    static testMethod void createAccountShortEmailTest() {
     	integer i =0;
        list<Account> Accounts = new list<Account>();
    //    for(integer i=0;i<1;i++){
        Account account = new Account();
        account.CurrencyIsoCode='USD';
       // account.Name='Test Account'+string.valueOf(i);
		account.PersonEmail='jumeol'+i+'@gmail.com';
		account.FirstName='julio';
		account.lastName='Medellin';
		account.RecordTypeId='012E0000000cDcNIAU';
	    Accounts.add(account);
      //  }
		test.startTest();
		insert Accounts;
		test.stopTest();
		
       List<Account> insertedAccounts = [SELECT Name, Description,Id FROM  Account WHERE Id IN :Accounts];  
	
		
		for(Account a : Accounts){  
			
       System.assertEquals('jumeol'+i+'@gmail.com',a.PersonEmail);  
        i++;
        }  
		

    }
    
        static testMethod void createAccountLongEmailTest() {
        	 	integer i =0;
          list<Account> Accounts = new list<Account>();
        //for(integer i=0;i<1;i++){
        Account account = new Account();
        account.CurrencyIsoCode='USD';
		account.PersonEmail='jules.Standford'+i+'@gsofttek.com';
		account.FirstName='jules';
		account.lastName='Standford';
		account.RecordTypeId='012E0000000cDcNIAU';
	    Accounts.add(account);
       // }
		test.startTest();
		insert Accounts;
		test.stopTest();
		
	    List<Account> insertedAccounts = [SELECT Name, Description,Id FROM Account WHERE Id IN :Accounts];  
	
	
		for(Account a : Accounts){  
       
       System.assertEquals('jules.Standford'+i+'@gsofttek.com',a.PersonEmail);  
        i++;  
        }  
    }
    
}